package com.qiandw

import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.cloud.client.discovery.EnableDiscoveryClient
import org.springframework.context.annotation.{Bean, EnableAspectJAutoProxy}
import org.springframework.security.core.userdetails.{User, UserDetailsService}
import org.springframework.security.provisioning.InMemoryUserDetailsManager
import org.springframework.web.client.RestTemplate
import org.springframework.web.servlet.config.annotation._

@EnableAspectJAutoProxy(proxyTargetClass = true)
@EnableDiscoveryClient
@SpringBootApplication(scanBasePackages = Array("com.qiandw"))
class AppConf extends WebMvcConfigurerAdapter {

  @Bean(Array("simpleRestTemplate"))
  def restTemplate: RestTemplate = {
    new RestTemplate
  }

}
